/**
 * 
 */
var ACTDataAccess = function() {};

ACTDataAccess.prototype.getTeamData = function(success, fail, params) {
	return PhoneGap.exec(function(args) {
		//alert("exec ok");
		success(args);
	}, function(args) {
		//alert("exec fail");
		fail(args);
	}, 'ACTDataAccess', 'getEquiposLiga', params);
	
	/*return PhoneGap.exec(success, fail,
    	'BluetoothDataSender', 'sendDataToDevice', [params]);*/
};

ACTDataAccess.prototype.getTeamMembers = function(success, fail, params) {
	return PhoneGap.exec(function(args) {
		//alert("exec ok");
		success(args);
	}, function(args) {
		//alert("exec fail");
		fail(args);
	}, 'ACTDataAccess', 'getRemerosEquipo', params);
	
	/*return PhoneGap.exec(success, fail,
    	'BluetoothDataSender', 'sendDataToDevice', [params]);*/
};


ACTDataAccess.prototype.getCalendarioLiga = function(success, fail, params) {
	return PhoneGap.exec(function(args) {
		//alert("exec ok");
		success(args);
	}, function(args) {
		//alert("exec fail");
		fail(args);
	}, 'ACTDataAccess', 'getCalendarioLiga', params);
	
	/*return PhoneGap.exec(success, fail,
    	'BluetoothDataSender', 'sendDataToDevice', [params]);*/
};

//function sendData(bluewin, bluefail, address, data) {

PhoneGap.addConstructor(function() {
	PhoneGap.addPlugin("actDataAccess", new ACTDataAccess());
	//PluginManager.addService("FlashLight","com.eejs.lntrn.flsh.FlashLight");
	//PhoneGap.exec(bluewin, bluefail, "BluetoothDataSender", "sendDataToDevice", [address, data]);
});